/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package View;

import java.io.IOException;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;

/**
 *
 * @author HuuTri
 */
public class CustomCanvas extends Canvas {

    Image backgroundImage ;
    public CustomCanvas() throws IOException {
        backgroundImage = Image.createImage("/background.png");
    }

    public void paint(Graphics g) {
        g.drawImage(backgroundImage, getWidth(),getHeight() , Graphics.BOTTOM|Graphics.RIGHT);
    }
    
}
